package controller

import (
	"Graphite/model"
	"Graphite/service"
	"Graphite/util"
	"github.com/gin-gonic/gin"
)

func ApiGroupInsert(c *gin.Context) {
	var apiGroup model.ApiGroup
	if err := c.Bind(&apiGroup); err != nil {
		util.Return(c,200,  util.PARA_ERROR, err)
		return
	}else {
		service.ApiGroupInsert(apiGroup)
		util.Return(c,200,  util.SUCCESS, err)
		return
	}
}

